#pragma once

#include <rpc/rpc.h>


#ifdef __cplusplus
extern "C" {
#endif


struct User {
	char username[33];
	char password[33];
	u_int nsip;
};
typedef struct User User;

#define AN_PROG 32700001
#define AN_VERSION 1

#if defined(__STDC__) || defined(__cplusplus)
#define LOGIN 1
extern  int * login_1(User *, CLIENT *);
extern  int * login_1_svc(User *, struct svc_req *);
#define LOGOUT 2
extern  int * logout_1(User *, CLIENT *);
extern  int * logout_1_svc(User *, struct svc_req *);
#define ONLINE 3
extern  int * online_1(User *, CLIENT *);
extern  int * online_1_svc(User *, struct svc_req *);
extern int an_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);

#else /* K&R C */
#define LOGIN 1
extern  int * login_1();
extern  int * login_1_svc();
#define LOGOUT 2
extern  int * logout_1();
extern  int * logout_1_svc();
#define ONLINE 3
extern  int * online_1();
extern  int * online_1_svc();
extern int an_prog_1_freeresult ();
#endif /* K&R C */

/* the xdr functions */

#if defined(__STDC__) || defined(__cplusplus)
extern  bool_t xdr_User (XDR *, User*);

#else /* K&R C */
extern bool_t xdr_User ();

#endif /* K&R C */

#ifdef __cplusplus
}
#endif
